# include <stdio.h>
# include <string.h>

int main()
{
    char ch[82] = {'\0'};
    fgets(ch, 82, stdin);
    int idx = 0;
    while (ch[idx] != '\n')
    {
        idx++;
    }
    ch[idx] = '\0';
    for (int j = 0; j < strlen(ch); j++)
    {
        if (ch[j] >= 'A' && ch[j] <= 'Z')
        {
            printf("%c", 'A' + 'Z' - ch[j]);
        }
        else
        {
            printf("%c", ch[j]);
        }
    }

    return 0;
}